package com.laterem.rtc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @creator: alan wu
 * @dateTime: 2023/5/20 00:25
 * @desc: 普通用户
 */
@Schema(title = "用户")
@Data
@TableName("user")
public class UserDO implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(title = "主键id")
    private Integer id;
    @Schema(title = "昵称")
    private String nickName;
    @Schema(title = "省份")
    private String province;
    @Schema(title = "语言")
    private String language;
    @Schema(title = "性别")
    private Integer gender;
    @Schema(title = "国家")
    private String country;
    @Schema(title = "用户城市")
    private String city;
    @Schema(title = "用户头像地址")
    private String avatarUrl;
    @Schema(title = "微信的openId")
    private String openId;
    // 1.普通 2：管理
    @Schema(title = "用户类型：1.普通 2：管理")
    private Integer userType = 1;
    @Schema(title = "创建时间")
    private LocalDateTime createTime;
    @TableField(exist = false)
    private String code;

    /**
     * 新增2023.06.26
     */
    @Schema(title = "手机号")
    private String cellphone;
    @Schema(title = "身份证号")
    private String idCard;
    @Schema(title = "真实姓名")
    private String realName;
}
